5 inline unsigned long b2d(string
&s
){
6 reverse(s
.begin(), s
.end());
8 unsigned long pow2
= 1;
9 for (int i
=0; i
<s
.size(); ++i
){
17 int gcd_short( int a
, int b
) { return b
? gcd_short( b
, a
% b
) : a
; }
19 unsigned long gcd(unsigned long a
, unsigned long b
){
20 unsigned long x
= a
, y
= b
, r
;
32 for (int i
=1; i
<=n
; ++i
){
35 unsigned long x
= b2d(s
), y
= b2d(t
);
36 cout
<< "Pair #" << i
<< ": ";
38 cout
<< "All you need is love!";
40 cout
<< "Love is not all you need!";